import { Component, OnInit } from '@angular/core';
import { StorageService } from '../sevices/storage.service';
import { Router } from '@angular/router';
import { HttpClient } from '@angular/common/http';

@Component({
  selector: 'app-tabbar',
  templateUrl: './tabbar.component.html',
  styleUrls: ['./tabbar.component.scss']
})
export class TabbarComponent implements OnInit {
  // tabbar图片切换
  public tabbarStore = false;
  public tabbarCart = true;
  public tabbarPersonalCenter = true;

  constructor() { }

  ngOnInit() {
  }

  // 商城图标
  tabbarStoreChagnge() {
    this.tabbarStore = false;
    this.tabbarCart = true;
    this.tabbarPersonalCenter = true;
  }
  // 购物车图标
  tabbarCartChagnge() {
    this.tabbarStore = true;
    this.tabbarCart = false;
    this.tabbarPersonalCenter = true;
  }
  // 个人中心
  tabbarPersonalCenterChagnge() {
    this.tabbarStore = true;
    this.tabbarCart = true;
    this.tabbarPersonalCenter = false;
  }



}
